package com.jrx.anytxn.accounting.job.investor.file.step;

import com.jrx.anytxn.accounting.entity.GaVoucherInfo;
import com.jrx.anytxn.accounting.service.IInvestorAccountingFileService;
import com.jrx.anytxn.param.dto.investor.FileBean;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 利息计提 - processor
 *
 * @author liuyang
 * @date 2020-05-26
 */
@Service
public class AccountingProcessor implements ItemProcessor<GaVoucherInfo, FileBean> {

    @Autowired
    private IInvestorAccountingFileService accountingFileService;

    @Override
    public FileBean process(GaVoucherInfo item) {
        return accountingFileService.createAccountingFileMessage(item);
    }

}
